package com.zhangzhan.blog_service.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.zhangzhan.base.common_model.result.ResponseResult;
import com.zhangzhan.blog_model.entity.Comment;
import com.zhangzhan.blog_model.vos.PageVo;

import java.util.List;

/**
 * <p>
 * 评论表 服务类
 * </p>
 *
 * @author zhangzhan
 * @since 2024-02-05
 */
public interface CommentService extends IService<Comment> {

    /**
     * @description 展示评论内容
     * @param articleId
     * @param pageNum
     * @param pageSize
     * @return com.zhangzhan.base.common_model.result.ResponseResult<java.util.List<com.zhangzhan.blog_model.vos.PageVo>>
     * @author zhangyiheng
     * @date 2024/2/5 22:23
     */
    ResponseResult<List<PageVo>> commentList(Long articleId, Long pageNum, Long pageSize);

    /**
     * @description 用户评论接口
     * @param comment
     * @return com.zhangzhan.base.common_model.result.ResponseResult
     * @author zhangyiheng
     * @date 2024/2/8 21:01
     */
    ResponseResult addComment(Comment comment);
}
